package dicts;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

public class RiskDict {

	public final static Integer TARGETIP = 0x00000001;
	public final static Integer TARGETNUMBER = 0x00000010;
	public final static Integer TARGETEMAIL = 0x00000100;
	public final static Integer TARGETPHONE = 0x00001000;
	public final static Integer TARGETADDR = 0x00010000;
	
	public final static Integer CONDITIONIP = 0x00000001;
	public final static Integer CONDITIONNUMBER = 0x00000010;
	public final static Integer CONDITIONEMAIL = 0x00000100;
	
	public final static Integer SCOPEMERCHANT = 0x00000001;
	public final static Integer SCOPESUBJECT = 0x00000010;
	public final static Integer SCOPEWEBSITE = 0x00000100;
	
	public final static Integer PAYALL = 0x00000001;
	public final static Integer PAYSUCCESS = 0x00000010;
	public final static Integer PAYFAILURE = 0x00000100;
	
	public final static Integer DAYLIMIT = 0x00000001;
	public final static Integer DAY1 = 0x00000010;
	public final static Integer DAY3 = 0x00000100;
	public final static Integer DAY7 = 0x00001000;
	public final static Integer DAY30 = 0x00010000;
	public final static Integer DAY180 = 0x00100000;
	
	public final static Integer COUNT1 = 0x00000001;
	public final static Integer COUNT2 = 0x00000010;
	public final static Integer COUNT3 = 0x00000100;
	public final static Integer COUNT5 = 0x00001000;
	public final static Integer COUNT10 = 0x00010000;

	public static final Map<Integer, String> TARGET = Collections.synchronizedMap(new LinkedHashMap<Integer, String>());
	static {
		TARGET.put(TARGETIP, "持卡人IP");
		TARGET.put(TARGETNUMBER, "持卡人卡号");
		TARGET.put(TARGETEMAIL, "持卡人邮箱");
		TARGET.put(TARGETPHONE, "持卡人电话");
		TARGET.put(TARGETADDR, "持卡人地址");
	}

	public static final Map<Integer, String> CONDITION = Collections.synchronizedMap(new LinkedHashMap<Integer, String>());
	static {
		CONDITION.put(CONDITIONIP, "IP次数");
		CONDITION.put(CONDITIONNUMBER, "卡号次数");
		CONDITION.put(CONDITIONEMAIL, "邮箱次数");
	}

	public static final Map<Integer, String> SCOPE = Collections.synchronizedMap(new LinkedHashMap<Integer, String>());
	static {
		SCOPE.put(SCOPEMERCHANT, "商户范围");
		SCOPE.put(SCOPESUBJECT, "子账户范围");
		SCOPE.put(SCOPEWEBSITE, "网站范围");
	}

	public static final Map<Integer, String> PAY = Collections.synchronizedMap(new LinkedHashMap<Integer, String>());
	static {
		PAY.put(PAYALL, "全部交易");
		PAY.put(PAYSUCCESS, "成功交易");
		PAY.put(PAYFAILURE, "失败交易");
	}


}
